from ApiBase import apiBase
jsEnv=apiBase.argv(1,'''{"OPENAI_API_MAX_TOKENS":"4000","OPENAI_API_TEMPERATURE":"0.2","PROJECT_HOME":"/home/softrobot/webapps/ROOT/BOOT-INF/config/projects/samples","LLMDB_URL":"jdbc:h2:tcp://8.130.66.117:9092/./llm.data;MODE=MySQL;","OPENAI_API_BASE":"http://8.130.66.117:11434/v1/","OPENAI_API_KEY":"key","OPENAI_MODEL":"Qwen2-0.5B-Instruct","LLMDB_JAR_URL":"/home/softrobot/webapps/ROOT/BOOT-INF/lib/h2-2.3.239-SNAPSHOT.jar"}''')
try:
    ret = apiBase.write_env(jsEnv)
    print(ret)
finally:
    apiBase.close()
